package me.siphone.http.api;

import androidx.annotation.NonNull;
import com.hjq.http.config.IRequestApi;

public class LoginApi implements IRequestApi {

    private String username;
    private String password;

    @NonNull
    @Override
    public String getApi() {
        return "/prod-api/wxLogin";
    }

    public LoginApi(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public static class Result {
        private int code;
        private String msg;
        private String token;
        private Device device;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        public String getToken() {
            return token;
        }

        public Device getDevice() {
            return device;
        }

        public static class Device {
            private String deviceUid;
            private String password;
            private String deviceName;

            public String getDeviceUid() {
                return deviceUid;
            }

            public String getPassword() {
                return password;
            }

            public String getDeviceName() {
                return deviceName;
            }
        }
    }
}
